{% extends "base.html" %} {% block title %}Chat - Appointment {{ appointment.id }}{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

{% if get_current_user().role == 'doctor' %} Chat with {{ appointment.patient.user.name }} {% else %} Chat with {{ appointment.doctor.user.name }} {% endif %}

{{ appointment.appointment_date.strftime('%B %d, %Y') }} at {{ appointment.appointment_time.strftime('%I:%M %p') }}

{{ appointment.disease_category }}

{{ appointment.status.title() }}
Connecting...

Loading chat history...

{% if appointment.status == 'completed' %}
Appointment Completed: Chat is now read-only. You can view previous messages but cannot send new ones.
{% else %} {% if get_current_user().role == 'doctor' %}
{% endif %}
{% endif %}
{% if get_current_user().role == 'doctor' %} {% endif %}
Appointment Details
Type:
{{ appointment.appointment_type.title() }}
Symptoms:
{{ appointment.symptoms or 'Not provided' }}
{% if appointment.notes %}
Notes:
{{ appointment.notes }}
{% endif %}
Charges:
PKR {{ appointment.charges }}
Quick Actions
View Details {% if get_current_user().role == 'patient' %} Medical History {% endif %}
{% endblock %} {% block extra_js %} {% endblock %}